
#include "LessonScene.h"


GLboolean Lesson_1(GLvoid)
{
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);	// Clear Screen And Depth Buffer
	glLoadIdentity();
	return true;
}

GLboolean Lesson_2(GLvoid)
{
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
	glLoadIdentity();  

	glTranslatef(-1.0, 0.0, -60.0);
	glBegin(GL_TRIANGLES);
		glVertex3d(0.0f, 1.0f, 0.0f);
		glVertex3d(-1.0f, -1.0f, 0.0f);
		glVertex3d(1.0f, -1.0f, 0.0f);	
	glEnd();

	glTranslatef(3.0f, 0.0f, 0.0f);
	glBegin(GL_QUADS);
		glVertex3d(-1.0f, 1.0f, 0.0f);	
		glVertex3d(1.0f, 1.0f, 0.0f);	
		glVertex3d(1.0f, -1.0f, 0.0f);	
		glVertex3d(-1.0f, -1.0f, 0.0f);	
	glEnd();

	return true;
}

GLboolean Lesson_3(GLvoid)
{
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
	glLoadIdentity();  

	glTranslatef(-1.0, 0.0, -6.0);
	glBegin(GL_TRIANGLES);
		glColor3f(1.0f, 0.0f, 0.0f);
			glVertex3d(0.0f, 1.0f, 0.0f);
		glColor3f(0.0f, 1.0f, 0.0f);
			glVertex3d(-1.0f, -1.0f, 0.0f);
		glColor3f(0.0f, 0.0f, 1.0f);
			glVertex3d(0.5f, -0.5f, 0.0f);	
	glEnd();

	glTranslatef(3.0f, 0.0f, 0.0f);
	glColor3f(0.0f, 0.0f, 1.0f);
	glBegin(GL_QUADS);
	glVertex3d(-1.0f, 1.0f, 0.0f);	
	glVertex3d(1.0f, 1.0f, 0.0f);	
	glVertex3d(1.0f, -1.0f, 0.0f);	
	glVertex3d(-1.0f, -1.0f, 0.0f);	
	glEnd();

	return true;
}